home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / program / palis.lha / Palis / src / vpl / plView.h < prev    next >
C/C++ Source or Header  |  1992-09-02  |  3KB  |  112 lines

  1. /*
  2.     ·C·O·D·E·X· ·D·E·S·I·G·N· ·S·O·F·T·W·A·R·E·
  3.     presents
  4.  
  5.     ViewPALIS
  6.  
  7.     this is a little example how to inform the user which patches
  8.     are currently managed by PALIS
  9.  
  10.     FILE:    plView.h
  11.     TASK:    include for PALIS view
  12.  
  13.     (c)1995 by Hans Bühler, h0348kil@rz.hu-berlin.de
  14. */
  15.  
  16. #include    "/Include.h"
  17. #include    <PALIS.h>
  18. #include    <ProcessArgs.h>
  19. #include    "PalisViewGUI.h"
  20.  
  21. // ---------------------------
  22. // defines
  23. // ---------------------------
  24.  
  25. #define    PROGNAME            "ViewPALIS"
  26. #define    PROGNAME_FULL    PROGNAME " V1.00 commodity"
  27. #define    PROGNAME_VER    "$VER: " PROGNAME_FULL " by Codex Design (oct.95)"
  28. #define    PROGNAME_WTIT    PROGNAME " V1.00 hotkey = "
  29. #define    PROGNAME_CX        PROGNAME " V1.00 by Codex Design"
  30.  
  31. #define    MAX_LINELEN        44        // plus null-byte...;^)
  32.  
  33. // prefs
  34. #define    ARG_CX_POPUP    0
  35. #define    ARG_CX_PRI        1
  36. #define    ARG_CX_HOTKEY    2
  37. #define    ARG_WINX            3
  38. #define    ARG_WINY            4
  39. #define    ARG_NUM            5
  40.  
  41. // cx events
  42. #define    CXE_POPUP        0
  43.  
  44. // various cmds
  45. #define    CMD_OKAY            0            // DO NOT USE code1 => refresh() !!!
  46. #define    CMD_QUIT            100
  47. #define    CMD_HIDE            2
  48. #define    CMD_ERRORBEEP    3
  49. #define    CMD_REFRESH        4
  50. #define    CMD_CANCEL        5
  51.  
  52. // ---------------------------
  53.  
  54. #define    LIST_PALIS        0
  55. #define    LIST_ABOUT        1
  56.  
  57. // ---------------------------
  58. // datatypes
  59. // ---------------------------
  60.  
  61. /********************************************************************
  62.  * these structure are used to hold a copy of what we're processing *
  63.  ********************************************************************/
  64.  
  65. struct Line
  66.     {
  67.         struct Node    Node;            // see define below
  68.     };
  69.  
  70. #define    Text    Node.ln_Name    // use Line->Name ...
  71.  
  72. // ---------------------------
  73. // proto
  74. // ---------------------------
  75.  
  76. // ---------------------------
  77. // vars
  78. // ---------------------------
  79.  
  80. extern struct Library        *GadToolsBase,*CxBase,*DiskfontBase,*IconBase;
  81. extern struct MsgPort        *CxPort,*MsgPort;
  82.  
  83. extern CxObj                    *CxMain;
  84.  
  85. extern struct ttToolType    tt[];
  86.  
  87. extern struct MinList        ActiveList;
  88.  
  89. // ---------------------------
  90. // funx
  91. // ---------------------------
  92.  
  93. extern void SetActiveList(UBYTE listID);
  94. extern BOOL InitLists(void);
  95. extern void RemLists(void);
  96.  
  97. extern LONG Req(char *txt, char *gad, APTR arg1, APTR arg2, APTR arg3, APTR arg4);
  98. extern BOOL ErrorReq(char *txt, APTR arg1, APTR arg2, APTR arg3, APTR arg4);
  99.  
  100. extern BOOL OpenWin(void);
  101. extern void CloseWin(void);
  102.  
  103. extern BOOL InitCom(void);
  104. extern void RemCom(void);
  105.  
  106. extern void main(int argc, char *argv[]);
  107.  
  108. extern BOOL InitPrefs(int argc, char *argv[]);
  109. extern void RemPrefs(void);
  110.  
  111. extern void MainLoop(void);
  112.